Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit cd90945b565e3adf9b9a5e6d9f463187d23d6b04


Parents : 015b902
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-10-07T01:24:16+02:00

Improved notification logic on desktop

Changes

1 files changed, 3 insertions(+), 2 deletions(-)


Diff

diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index 696247c3..313bf0c6 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -1161,8 +1161,9 @@ class SidebandCore():
self.unread_conversation(context_dest)
self.setstate("app.flags.unread_conversations", True)
- if self.gui_display() == "conversations_screen" and self.gui_foreground():
- should_notify = False
+ if RNS.vendor.platformutils.is_android():
+ if self.gui_display() == "conversations_screen" and self.gui_foreground():
+ should_notify = False
if self.is_client:
should_notify = False


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────